﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000E7 RID: 231
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BatchGetQuestDataScRsp : IMessage<BatchGetQuestDataScRsp>, IMessage, IEquatable<BatchGetQuestDataScRsp>, IDeepCloneable<BatchGetQuestDataScRsp>, IBufferMessage
	{
		// Token: 0x17000312 RID: 786
		// (get) Token: 0x06000A8E RID: 2702 RVA: 0x0001F2C1 File Offset: 0x0001D4C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BatchGetQuestDataScRsp> Parser
		{
			get
			{
				return BatchGetQuestDataScRsp._parser;
			}
		}

		// Token: 0x17000313 RID: 787
		// (get) Token: 0x06000A8F RID: 2703 RVA: 0x0001F2C8 File Offset: 0x0001D4C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BatchGetQuestDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000314 RID: 788
		// (get) Token: 0x06000A90 RID: 2704 RVA: 0x0001F2DA File Offset: 0x0001D4DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BatchGetQuestDataScRsp.Descriptor;
			}
		}

		// Token: 0x06000A91 RID: 2705 RVA: 0x0001F2E1 File Offset: 0x0001D4E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BatchGetQuestDataScRsp()
		{
		}

		// Token: 0x06000A92 RID: 2706 RVA: 0x0001F2F4 File Offset: 0x0001D4F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BatchGetQuestDataScRsp(BatchGetQuestDataScRsp other) : this()
		{
			this.questList_ = other.questList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000A93 RID: 2707 RVA: 0x0001F32A File Offset: 0x0001D52A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BatchGetQuestDataScRsp Clone()
		{
			return new BatchGetQuestDataScRsp(this);
		}

		// Token: 0x17000315 RID: 789
		// (get) Token: 0x06000A94 RID: 2708 RVA: 0x0001F332 File Offset: 0x0001D532
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Quest> QuestList
		{
			get
			{
				return this.questList_;
			}
		}

		// Token: 0x17000316 RID: 790
		// (get) Token: 0x06000A95 RID: 2709 RVA: 0x0001F33A File Offset: 0x0001D53A
		// (set) Token: 0x06000A96 RID: 2710 RVA: 0x0001F342 File Offset: 0x0001D542
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06000A97 RID: 2711 RVA: 0x0001F34B File Offset: 0x0001D54B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BatchGetQuestDataScRsp);
		}

		// Token: 0x06000A98 RID: 2712 RVA: 0x0001F35C File Offset: 0x0001D55C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BatchGetQuestDataScRsp other)
		{
			return other != null && (other == this || (this.questList_.Equals(other.questList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000A99 RID: 2713 RVA: 0x0001F3AC File Offset: 0x0001D5AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.questList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000A9A RID: 2714 RVA: 0x0001F3F9 File Offset: 0x0001D5F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000A9B RID: 2715 RVA: 0x0001F401 File Offset: 0x0001D601
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000A9C RID: 2716 RVA: 0x0001F40C File Offset: 0x0001D60C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			this.questList_.WriteTo(ref output, BatchGetQuestDataScRsp._repeated_questList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000A9D RID: 2717 RVA: 0x0001F45C File Offset: 0x0001D65C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.questList_.CalculateSize(BatchGetQuestDataScRsp._repeated_questList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000A9E RID: 2718 RVA: 0x0001F4B0 File Offset: 0x0001D6B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BatchGetQuestDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.questList_.Add(other.questList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000A9F RID: 2719 RVA: 0x0001F4FD File Offset: 0x0001D6FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000AA0 RID: 2720 RVA: 0x0001F508 File Offset: 0x0001D708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.questList_.AddEntriesFrom(ref input, BatchGetQuestDataScRsp._repeated_questList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400043C RID: 1084
		private static readonly MessageParser<BatchGetQuestDataScRsp> _parser = new MessageParser<BatchGetQuestDataScRsp>(() => new BatchGetQuestDataScRsp());

		// Token: 0x0400043D RID: 1085
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400043E RID: 1086
		public const int QuestListFieldNumber = 10;

		// Token: 0x0400043F RID: 1087
		private static readonly FieldCodec<Quest> _repeated_questList_codec = FieldCodec.ForMessage<Quest>(82U, Quest.Parser);

		// Token: 0x04000440 RID: 1088
		private readonly RepeatedField<Quest> questList_ = new RepeatedField<Quest>();

		// Token: 0x04000441 RID: 1089
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04000442 RID: 1090
		private uint retcode_;
	}
}
